﻿CREATE TRIGGER Centers_Tracking_Delete
ON [dbo].[Centers] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.Centers_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.Centers_Tracking s JOIN DELETED i
    ON s.CenterID = i.CenterID
END














